load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@npm_angular_bazel//:index.bzl", "ng_module")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])  # Apache License 2.0

ng_module(
    name = "cpu_axes",
    srcs = [
        "cpu_axes_module.ts",
        "cpu_axis_layer.ts",
        "index.ts",
        "topological_cpu_axis_layer.ts",
    ],
    assets = [
        "cpu_axes.css",
    ],
    deps = [
        "//client/app/util",
        "@npm//@angular/core",
        "@npm//@angular/platform-browser",
        "@npm//@types/node",
        "@npm//d3",
        "@npm//rxjs",
    ],
)

ts_library(
    name = "cpu_axes_tests",
    testonly = True,
    srcs = [
        "cpu_axes_test.ts",
    ],
    deps = [
        ":cpu_axes",
        "//client/app/heatmap",
        "//client/app/models",
        "//client/app/services",
        "//client/app/util",
        "@npm//@angular/core",
        "@npm//@angular/platform-browser-dynamic",
        "@npm//@types/jasmine",
        "@npm//d3",
        "@npm//rxjs",
    ],
)
